package com.crm.business.admin.service;

import com.crm.business.servlet.BaseService;
import com.crm.common.admin.entity.BO.*;
import com.crm.common.admin.entity.PO.AdminAddressBook;
import com.crm.common.ka.core.entity.BasePage;

/**
 * <p>
 * 通讯录表 服务类
 * </p>
 *
 * @author zhangzhiwei
 * @since 2020-04-27
 */
public interface IAdminAddressBookService extends BaseService<AdminAddressBook> {

    /**
     * 查询通讯录
     * @param addressBookBO 业务对象
     * @return ids
     */
    public BasePage<AdminAddressBook> queryUserList(AdminAddressBookBO addressBookBO);

    /**
     * 通讯录同步
     */
    public void synchronousAddressBook();

    /**
     * 根据用户Id查询通讯录信息
     * @param userId
     * @return
     */
    public AdminAddressBook queryAddressBookByUserId(Long userId);

}
